package musicstore.action;

import java.util.List;

import musicstore.biz.GenreBiz;
import musicstore.entity.Genre;
import musicstore.entity.User;

import com.opensymphony.xwork2.ActionSupport;

public class SidebarAction extends ActionSupport {

	private List<Genre> genreList;

	public List<Genre> getGenreList() {
		return genreList;
	}

	private GenreBiz genreBiz;
	public void setGenreBiz(GenreBiz genreBiz) {
		this.genreBiz = genreBiz;
	}
	
	public String list() {
		this.genreList = genreBiz.getAll();
		return SUCCESS;
	}

}
